package com.scbo.activity;

import com.scbo.main.R;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class MainActivity extends Activity implements OnClickListener {

	public static int TERRAN_CHOICE = 1;
	public static int PROTOSS_CHOICE = 2;
	public static int ZERG_CHOICE = 3;
	public static int TvsT = 1;
	public static int TvsP = 2;
	public static int TvsZ = 3;
	public static int PvsT = 4;
	public static int PvsP = 5;
	public static int PvsZ = 6;
	public static int ZvsT = 7;
	public static int ZvsP = 8;
	public static int ZvsZ = 9;
	public static int StandardBuilds = 1;
	public static int MarcoBuilds = 2;
	public static int AggressiveBuilds = 3;
	public static int AllInBuilds = 4;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// remove title bar
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);

		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);

	}

	@Override
	public void onClick(View v) {
//		Intent i = null;
//		switch (v.getId()) {
//		case R.id.btn_Protoss:
//			i = new Intent(this, ChoseVsActivity.class);
//			i.putExtra("firstChoice", PROTOSS_CHOICE);
//			startActivity(i);
//			break;
//		case R.id.btn_Terran:
//			i = new Intent(this, ChoseVsActivity.class);
//			i.putExtra("firstChoice", TERRAN_CHOICE);
//			startActivity(i);
//			break;
//		case R.id.btn_Zerg:
//			i = new Intent(this, ChoseVsActivity.class);
//			i.putExtra("firstChoice", ZERG_CHOICE);
//			startActivity(i);
//			break;
//
//		default:
//			break;
//		}
		Intent i = null;
		switch (v.getId()) {
		case R.id.btnCreate:
			i = new Intent(this, CreateActivity.class);
			startActivity(i);
			break;
		case R.id.btnTrain:
			i = new Intent(this, PreChoseActivity.class);
			startActivity(i);
			break;
		case R.id.btnDownload:
			i = new Intent(this, DownloadActivity.class);
			startActivity(i);
			break;

		default:
			break;
		}
	}

}
